

package com.hazelcast.internal.management;

import com.hazelcast.internal.management.events.Event;

/**
 * Callback interface that captures {@link Event}s logged to Management
 * Center. It captures only events that are about to be sent to Management
 * Center. If the {@link ManagementCenterService} is not running or not
 * enabled, this event listener is not called.
 *
 * @see ManagementCenterService#log(Event)
 */
@FunctionalInterface
public interface ManagementCenterEventListener {

    /**
     * Callback for logging MC events.
     *
     * @param event The event logged
     */
    void onEventLogged(Event event);
}
